//
//  DatePicker.h
//  test
//
//  Created by steven yang on 10-11-12.
//  Copyright 2010 kmyhy. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface DatePicker : UIView 
<UITextFieldDelegate>
{
	UITextField* textField;//文本框
	UIDatePicker* dp;//日期选择控件
	NSDateFormatter *dateFormatter;//日期格式
 	UIDatePickerMode datePickerMode;//日期控件显示风格
	NSDate* date;
//	UIView* subview;
}
@property(nonatomic) UIDatePickerMode datePickerMode;
@property(strong,nonatomic)	UIView* subview;

//@property(nonatomic,retain)UITextField* textField;
@property (strong,nonatomic) UIToolbar *subToolbar;
@property(nonatomic,retain)NSDateFormatter* dateFormatter;
@property(nonatomic,retain)NSDate* date;
@property(nonatomic,retain,readonly)NSString* text;
//@property(nonatomic,retain)UIDatePicker* datePicker;
-(UIDatePickerMode)datePickerMode;
-(void)setDatePickerMode:(UIDatePickerMode)mode;
-(NSDateFormatter*)dateFormatter;
-(void)setDateFormatter:(NSDateFormatter *)df;
-(NSDate*)date;
-(void)setDate:(NSDate*)d;
-(NSString*)text;
-(UITextField*)textField;
-(UIDatePicker*)datePicker;
//-(NSString*)text;
- (id)initWithFrame:(CGRect)frame;
@end
